﻿@model IEnumerable<HdipCricketClub.Models.ClubFixturePlayer>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            batsman_number
        </th>
        <th>
            DismissalType
        </th>
        <th>
            fielder_name
        </th>
        <th>
            bowler_name
        </th>
        <th>
            batting_runs
        </th>
        <th>
            bowler_number
        </th>
        <th>
            overs
        </th>
        <th>
            maidens
        </th>
        <th>
            bowling_runs
        </th>
        <th>
            wickets
        </th>
        <th>
            contacted
        </th>
        <th>
            confirmed
        </th>
        <th>
            contact
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.batsman_number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DismissalType.type)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.fielder_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bowler_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.batting_runs)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bowler_number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.overs)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.maidens)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bowling_runs)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wickets)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.contacted)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.confirmed)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.contact)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
